package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StorePurchaseSupplierEntity;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 仓库采购供应商 保存对象
 *
 * @author xueqz 2021-03-03
 */
@Data
@ApiModel("仓库采购供应商-保存对象")
public class StorePurchaseSupplierSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "供应商名称")
    private String name;

    @ApiModelProperty(value = "状态：0-禁用,1-启用")
    private Boolean status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    private Integer createUser;

    @ApiModelProperty(value = "更新人")
    private Integer updateUser;

    @ApiModelProperty(value = "逻辑删除，0-未删除 1-已删除")
    private Boolean deleted;

    public StorePurchaseSupplierEntity convertEntity() {
        StorePurchaseSupplierEntity target = new StorePurchaseSupplierEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
